# resources.py

import logging

from import_export import resources

from . import models

logger = logging.getLogger(__name__)


class ThinkingModelResource(resources.ModelResource):
    """
    思维模型资源
    """
    class Meta:
        model = models.ThinkingModel
        exclude = ('id', 'created_at', 'updated_at',
                   'created_by', 'updated_by', 'active',)
        import_id_fields = []  # 每次都新增


class ThinkingModelCaseResource(resources.ModelResource):
    """
    思维模型案例资源
    """
    class Meta:
        model = models.ThinkingModelCase
        exclude = ('id', 'created_at', 'updated_at',
                   'created_by', 'updated_by')
        import_id_fields = []  # 每次都新增
